from log.constants.choices import LogType


class LogTypeError(Exception):

    def __init__(self, log_type):
        self.message = f"log type {log_type} does not exist. Select from {LogType.get_log_types()}"

    def __str__(self):
        return self.message
